<template>
  <div class="file-title flex-row flex-align-c flex-justify-b">
    <span class="ellipsis scale-grow">{{item.filename}}</span>
    <div>
      <i
        v-if="item.model == 'local'"
        class="el-icon-location-outline"
        style="font-size:20px;color:#409EFF;"
      ></i>
      <svg-icon
        v-if="item.model == 'perm'"
        icon-class="wechat"
        style="font-size:20px;fill:#4dbe2e;"
      />
    </div>
  </div>
</template>

<script>
export default {
  name: 'ChannelListHeader',
  props: {
    item: {
      type: Object,
      default: function() {
        return {
          filename: '',
          model: 'local'
        }
      }
    }
  },
  data() {
    return {

    }
  },
  mounted() {

  },
  beforeDestroy() {

  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.file-title {
  line-height: 1;
  padding: 10px;
  box-sizing: border-box;
  span {
    line-height: 1;
  }
}
</style>
